package com.cosina.game.robodefence.findway;

import android.graphics.Point;

import com.cosina.game.robodefence.core.BattleField;
import com.cosina.game.robodefence.model.Way;

public class FindWayFacade {
	public static BlankRoute getRoute(BattleField field, Point entry, Point exit){
		Chart chart = new Chart(field.getFieldData());
		return chart.connectvie(entry.x, entry.y, exit.x, exit.y);
	}

	public static Path getPath(BattleField field, Way way){
		return getRoute(field,way.entry,way.exit).getClear2Path();
	}
}
